#ifndef  __USER_H__
#define __USER_H__


typedef  enum{
    STATUS_LOGOFF=0,
    STATUS_LOGIN 
}LoginStatus;


typedef  struct{
    int sockfd; 
    LoginStatus status;
    char name[20];
    char encrypted[100];
    char pwd[128];
}user_info_t;

void loginCheck1(user_info_t* user);
void loginCheck2(user_info_t* user,const char* encrypted);

#endif
